public class Circle extends ASingleShape {
	private int radius;

	public Circle(CartesianPoint location, int radius) {
		super(location);
		this.radius = radius;
	}

	@Override
	public double area() {
		return Math.PI * this.radius * this.radius;
	}

	@Override
	public boolean contains(CartesianPoint that) {
		return this.location.distanceTo(that) <= this.radius;
	}

	@Override
	public Rectangle boundingBox() {
		return new Rectangle(
				this.location.translate(-this.radius, -this.radius),
				this.radius * 2, this.radius * 2);
	}

	@Override
	public double distancoTo0() {
		// TODO Auto-generated method stub
		return 0;
	}

}
